<?php
declare (strict_types = 1);

namespace app\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\common\service\RpcService\RpcServer\RpcSwooleTcpServer;
class SwooleTcpServer extends Command
{
    protected function configure()
    {
        // 指令配置
        $this->setName('SwooleTcpServer')
            ->setDescription('the SwooleTcpServer command');
    }

    protected function execute(Input $input, Output $output)
    {
        // 指令输出
        callApi(RpcSwooleTcpServer::class, 'start', []);
        $output->writeln('SwooleTcpServer');
    }
}
